package com.ruoyi.system.service;

import java.util.HashMap;
import java.util.List;

import com.ruoyi.system.domain.TmcMaintenanceAttach;
import com.ruoyi.system.domain.TmcPropertyMaintenance;

/**
 * 维修记录Service接口
 * 
 * @author ruoyi
 * @date 2021-03-31
 */
public interface ITmcPropertyMaintenanceService 
{
    /**
     * 查询维修记录
     * 
     * @param id 维修记录ID
     * @return 维修记录
     */
    public TmcPropertyMaintenance selectTmcPropertyMaintenanceById(Long id);
    public TmcPropertyMaintenance selectTmcPropertyMaintenanceID(Long id);

    /**
     * 查询维修记录列表
     * 
     * @param tmcPropertyMaintenance 维修记录
     * @return 维修记录集合
     */
    public List<TmcPropertyMaintenance> selectTmcPropertyMaintenanceList(TmcPropertyMaintenance tmcPropertyMaintenance);

    /**
     * 新增维修记录
     * 
     * @param tmcPropertyMaintenance 维修记录
     * @return 结果
     */
    public int insertTmcPropertyMaintenance(TmcPropertyMaintenance tmcPropertyMaintenance);
 /**
     * 新增维修记录
     *
     * @param tmcMaintenanceAttach 维修记录
     * @return 结果
     */
    public int insertTmcMaintenanceAttach(TmcMaintenanceAttach tmcMaintenanceAttach);

    /**
     * 修改维修记录
     * 
     * @param tmcPropertyMaintenance 维修记录
     * @return 结果
     */
    public int updateTmcPropertyMaintenance(TmcPropertyMaintenance tmcPropertyMaintenance);

    /**
     * 批量删除维修记录
     * 
     * @param ids 需要删除的维修记录ID
     * @return 结果
     */
    public int deleteTmcPropertyMaintenanceByIds(Long[] ids);

    /**
     * 删除维修记录信息
     * 
     * @param id 维修记录ID
     * @return 结果
     */
    public int deleteTmcPropertyMaintenanceById(Long id);

    List<TmcMaintenanceAttach> selectAttachById(Long ID);

    List<TmcPropertyMaintenance> QueryUserMaintenanceList(TmcPropertyMaintenance tmcPropertyMaintenance);

    List<TmcPropertyMaintenance> QueryUserMaintenanceListByID(TmcPropertyMaintenance tmcPropertyMaintenance);

    int CompleteMaintenance(Long maintenanceID);
}
